package com.suitsoft.ut.entity.thesis;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.suitsoft.ut.entity.IdEntity;
import com.suitsoft.ut.entity.system.SystemInfo;

/**
 * 评分
 *@author Suineg
 */
@Entity
@Table(name = "LW_THESIS_SCORE")
public class ThesisScore extends IdEntity{
	/** 题目  */
	private Thesis thesis;
	/** 评分依据 */
	private SystemInfo systemInfo;
	/** 分 */
	private Double score;
	/** 评分教师 */
	private String teacherName;
	/** 评分时间 */
	private Date teacherDate;
	/** 中期 答辩 区别 1 - 中期，2- 指导教师，3 - 评阅教师，4 - 答辩评分 */
	private Long type;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "THESIS_ID")
	public Thesis getThesis() {
		return thesis;
	}
	public void setThesis(Thesis thesis) {
		this.thesis = thesis;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "SYSTEM_ID")
	public SystemInfo getSystemInfo() {
		return systemInfo;
	}
	public void setSystemInfo(SystemInfo systemInfo) {
		this.systemInfo = systemInfo;
	}
	public Double getScore() {
		return score;
	}
	public void setScore(Double score) {
		this.score = score;
	}
	public String getTeacherName() {
		return teacherName;
	}
	public void setTeacherName(String teacherName) {
		this.teacherName = teacherName;
	}
	public Date getTeacherDate() {
		return teacherDate;
	}
	public void setTeacherDate(Date teacherDate) {
		this.teacherDate = teacherDate;
	}
	public Long getType() {
		return type;
	}
	public void setType(Long type) {
		this.type = type;
	}
}

